package calc;

import calc.Operator;

public class Container {

    // houses the previous operation, with a prev, a value and an operator,
    // effectively forming a chain of calculations
    Container prev;

    // the value of this calculation
    float value;
    // the operator of this calculation
    Operator operator;

    public Container(float value, Operator operator, Container prev) {
        this.value = value;
        this.operator = operator;
        this.prev = prev;
    }

    public float getValue() {
        return this.value;
    }

    public Operator getOP() {
        return this.operator;
    }

}
